﻿<%@ Page Title="" Language="C#" MasterPageFile="~/QCTT/User/User.Master" AutoEventWireup="true" CodeBehind="NoiDungChuaDuyet.aspx.cs" Inherits="NS_QuangCaoTiepThi.QCTT.User.NoiDungChuaDuyet" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
        <asp:Label ID="lblNgayTu" runat="server" Text="Từ ngày:"></asp:Label>

        <asp:TextBox ID="txtNgayTu" runat="server"></asp:TextBox>

        <asp:CalendarExtender ID="txtNgayTu_CalendarExtender" runat="server" 
            Enabled="True" TargetControlID="txtNgayTu" Format="dd/MM/yyyy">
        </asp:CalendarExtender>
        <asp:Label ID="lblNgayDen" runat="server" Text="Đến ngày:"></asp:Label>
        <asp:TextBox ID="txtNgayDen" runat="server"></asp:TextBox>
        <asp:CalendarExtender ID="txtNgayDen_CalendarExtender" runat="server" 
            Enabled="True" TargetControlID="txtNgayDen" Format="dd/MM/yyyy">
        </asp:CalendarExtender>
        <asp:Button ID="btnTimKiem" runat="server" Text="Tìm kiếm" Width="100px" 
            onclick="btnTimKiem_Click" />
    </div>

    <br />

    <div>
        <asp:GridView ID="gvNoiDungChuaDuyet" runat="server" 
            AutoGenerateColumns="False" Width="100%" AllowPaging="True" 
            Caption="NỘI DUNG CHƯA DUYỆT" DataKeyNames="MaNoiDung" 
            onpageindexchanging="gvNoiDungChuaDuyet_PageIndexChanging" 
            onrowcancelingedit="gvNoiDungChuaDuyet_RowCancelingEdit" 
            onrowdeleting="gvNoiDungChuaDuyet_RowDeleting" 
            onrowediting="gvNoiDungChuaDuyet_RowEditing" 
            onrowupdating="gvNoiDungChuaDuyet_RowUpdating">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <div>
                            <asp:Label ID="lblNoiDungTinTucChung" runat="server" Text="Tin tức chung"></asp:Label>
                            <asp:TextBox ID="txtNoiDungTinTucChung" runat="server" Width="718px" 
                                ForeColor="Blue" TextMode="MultiLine" 
                                Text='<%# Eval("NoiDungTinTucChung") %>'></asp:TextBox>
                            <br />
                            <asp:Label ID="lblNgayBatDauNoiDungTinTucChung" runat="server" Text="Ngày bắt đầu"></asp:Label>
                            <asp:TextBox ID="txtNgayBatDauNoiDungTinTucChung" runat="server" 
                                Text='<%# Eval("NgayBatDauTinTucChung") %>'></asp:TextBox>
                            <asp:CalendarExtender ID="txtNgayBatDauNoiDungTinTucChung_CalendarExtender" runat="server" 
                                Enabled="True" TargetControlID="txtNgayBatDauNoiDungTinTucChung" 
                                Format="dd/MM/yyyy">
                            </asp:CalendarExtender>
                            <asp:Label ID="lblNgayKetThucNoiDungTinTucChung" runat="server" Text="Ngày kết thúc"></asp:Label>
                            <asp:TextBox ID="txtNgayKetThucNoiDungTinTucChung" runat="server" 
                                Text='<%# Eval("NgayKetThucTinTucChung") %>'></asp:TextBox>
                            <asp:CalendarExtender ID="txtNgayKetThucNoiDungTinTucChung_CalendarExtender" runat="server" 
                                Enabled="True" TargetControlID="txtNgayKetThucNoiDungTinTucChung" 
                                Format="dd/MM/yyyy">
                            </asp:CalendarExtender>
                        </div>

                        <br />

                        <div>
                            <asp:Label ID="lblNoiDungTinTucNoiBat" runat="server" Text="Tin tức nổi bật"></asp:Label>
                            <asp:TextBox ID="txtNoiDungTinTucNoiBat" runat="server" Width="718px" 
                                ForeColor="Red" TextMode="MultiLine" 
                                Text='<%# Eval("NoiDungTinTucNoiBat") %>'></asp:TextBox>
                            <br />
                            <asp:Label ID="lblNgayBatDauNoiDungTinTucNoiBat" runat="server" Text="Ngày bắt đầu"></asp:Label>
                            <asp:TextBox ID="txtNgayBatDauNoiDungTinTucNoiBat" runat="server" 
                                Text='<%# Eval("NgayBatDauTinTucNoiBat") %>'></asp:TextBox>
                            <asp:CalendarExtender ID="txtNgayBatDauNoiDungTinTucNoiBat_CalendarExtender" runat="server" 
                                Enabled="True" TargetControlID="txtNgayBatDauNoiDungTinTucNoiBat" 
                                Format="dd/MM/yyyy">
                            </asp:CalendarExtender>
                            <asp:Label ID="lblNgayKetThucNoiDungTinTucNoiBat" runat="server" Text="Ngày kết thúc"></asp:Label>
                            <asp:TextBox ID="txtNgayKetThucNoiDungTinTucNoiBat" runat="server" 
                                Text='<%# Eval("NgayKetThucTinTucNoiBat") %>'></asp:TextBox>
                            <asp:CalendarExtender ID="NgayKetThucNoiDungTinTucNoiBat_CalendarExtender" runat="server" 
                                Enabled="True" TargetControlID="txtNgayKetThucNoiDungTinTucNoiBat" 
                                Format="dd/MM/yyyy">
                            </asp:CalendarExtender>
                        </div>

                        <br />

                        <div>
                            <asp:Label ID="lblHinhAnhQuangCaoDung" runat="server" Text="Hình ảnh nội bộ"></asp:Label>
                            <asp:FileUpload ID="fupdHinhAnhQuangCaoDung" runat="server" />
                            <asp:HiddenField ID="hfHinhAnhQuangCaoDung" runat="server" 
                                Value='<%# Eval("TenFileHinhAnhNoiBo") %>' />
                            <br />
                            <asp:Label ID="lblNgayBatDauHinhAnhQuangCaoDung" runat="server" Text="Ngày bắt đầu"></asp:Label>
                            <asp:TextBox ID="txtNgayBatDauHinhAnhQuangCaoDung" runat="server" 
                                Text='<%# Eval("NgayBatDauHinhAnhNoiBo") %>'></asp:TextBox>
                            <asp:CalendarExtender ID="txtNgayBatDauHinhAnhQuangCaoDung_CalendarExtender" runat="server"
                                Enabled="true" TargetControlID="txtNgayBatDauHinhAnhQuangCaoDung" 
                                Format="dd/MM/yyyy">
                            </asp:CalendarExtender>
                            <asp:Label ID="lblNgayKetThucHinhAnhQuangCaoDung" runat="server" Text="Ngày kết thúc"></asp:Label>
                            <asp:TextBox ID="txtNgayKetThucHinhAnhQuangCaoDung" runat="server" 
                                Text='<%# Eval("NgayKetThucHinhAnhNoiBo") %>'></asp:TextBox>
                            <asp:CalendarExtender ID="txtNgayKetThucHinhAnhQuangCaoDung_CalendarExtender" runat="server"
                                Enabled="true" TargetControlID="txtNgayKetThucHinhAnhQuangCaoDung" 
                                Format="dd/MM/yyyy">
                            </asp:CalendarExtender>
                        </div>

                        <br />

                        <div>
                            <asp:Label ID="lblHinhAnhQuangCaoNgang" runat="server" Text="Hình ảnh khách hàng"></asp:Label>
                            <asp:FileUpload ID="fupdHinhAnhQuangCaoNgang" runat="server" />
                            <asp:HiddenField ID="hfHinhAnhQuangCaoNgang" runat="server" 
                                Value='<%# Eval("TenFileHinhAnhKhachHang") %>' />
                            <br />
                            <asp:Label ID="lblNgayBatDauHinhAnhQuangCaoNgang" runat="server" Text="Ngày bắt đầu"></asp:Label>
                            <asp:TextBox ID="txtNgayBatDauHinhAnhQuangCaoNgang" runat="server" 
                                Text='<%# Eval("NgayBatDauHinhAnhKhachHang") %>'></asp:TextBox>
                            <asp:CalendarExtender ID="txtNgayBatDauHinhAnhQuangCaoNgang_CalendarExtender" runat="server"
                                Enabled="true" TargetControlID="txtNgayBatDauHinhAnhQuangCaoNgang" 
                                Format="dd/MM/yyyy">
                            </asp:CalendarExtender>
                            <asp:Label ID="lblNgayKetThucHinhAnhQuangCaoNgang" runat="server" Text="Ngày kết thúc"></asp:Label>
                            <asp:TextBox ID="txtNgayKetThucHinhAnhQuangCaoNgang" runat="server" 
                                Text='<%# Eval("NgayKetThucHinhAnhKhachHang") %>'></asp:TextBox>
                            <asp:CalendarExtender ID="txtNgayKetThucHinhAnhQuangCao_CalendarExtender" runat="server"
                                Enabled="true" TargetControlID="txtNgayKetThucHinhAnhQuangCaoNgang" 
                                Format="dd/MM/yyyy">
                            </asp:CalendarExtender>
                        </div>

                        <br />

                        <div>
                            <asp:Label ID="lblVideoNoiBo" runat="server" Text="Video"></asp:Label>
                            <asp:FileUpload ID="fupdVideoNoiBo" runat="server" />
                            <asp:HiddenField ID="hfVideoNoiBo" runat="server" 
                                Value='<%# Eval("TenFileVideoNoiBo") %>' />
                            <asp:CheckBox ID="chkChoPhepPhatLienTuc" runat="server" 
                                Text="Cho phép phát liên tục" Visible="False"/>
                            <br />
                            <asp:Label ID="lblNgayBatDauVideoNoiBo" runat="server" Text="Ngày bắt đầu"></asp:Label>
                            <asp:TextBox ID="txtNgayBatDauVideoNoiBo" runat="server" 
                                Text='<%# Eval("NgayBatDauVideoNoiBo") %>'></asp:TextBox>
                            <asp:CalendarExtender ID="txtNgayBatDauVideoNoiBo_CalendarExtender" runat="server"
                                Enabled="true" TargetControlID="txtNgayBatDauVideoNoiBo" 
                                Format="dd/MM/yyyy">
                            </asp:CalendarExtender>
                            <asp:Label ID="lblNgayKetThucVideoNoiBo" runat="server" Text="Ngày kết thúc"></asp:Label>
                            <asp:TextBox ID="txtNgayKetThucVideoNoiBo" runat="server" 
                                Text='<%# Eval("NgayKetThucVideoNoiBo") %>'></asp:TextBox>
                            <asp:CalendarExtender ID="txtNgayKetThucVideoNoiBo_CalendarExtender" runat="server"
                                Enabled="true" TargetControlID="txtNgayKetThucVideoNoiBo" 
                                Format="dd/MM/yyyy">
                            </asp:CalendarExtender>
                        </div>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:CommandField ShowEditButton="True" />
                <asp:CommandField ShowDeleteButton="True" />
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
